package com.cardone.platform.common.service;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import org.springframework.cache.annotation.CacheEvict;

import com.cardone.platform.common.dao.CommonDao;

/**
 * 公共服务
 * 
 * @author yaoht
 * 
 */
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
public class CommonDefaultService implements CommonService {
	/**
	 * 辅助服务
	 */
	private AssistantService assistantService;

	/**
	 * 公共数据持久
	 */
	private CommonDao commonDao;

	@Override
	@CacheEvict(value = CommonService.BEAN_ID, allEntries = true)
	public void reload() {
		this.commonDao.reload();
	}
}